import uuid

def generate_id():
    """生成唯一ID"""
    return str(uuid.uuid4())[:8]

def generate_short_id():
    """生成更短的唯一ID"""
    return str(uuid.uuid4())[:6]